package com.atguigu.yygh.repository;

import com.atguigu.yygh.model.hosp.Department;
import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author xdr630
 * @version 1.0
 * @date 2023/7/15 19:25
 */
public interface DepartmentRepository extends MongoRepository<Department,String> {




    Department findDepartmentByHoscodeAndDepcode(String hoscode,String depcode);

    List<Department> findDepartmentByHoscode(String hoscode);
}
